package lab02.Test06;

/**
 * Created by Administrator on 2017/10/15.
 */
public class Test06 {
    public static void main(String[] args) {
        System.out.println("关于三角形：");
        Triangle triangle = new Triangle();
        triangle.setA(3);
        triangle.setB(4);
        triangle.setC(7.1);
        triangle.Triangle();
        triangle.getTriangleArea(triangle.getA(), triangle.getB(), triangle.getC());
        triangle.getTrinanglePerimeter(triangle.getA(), triangle.getB(), triangle.getC());
        System.out.println("关于圆：");
        Circle circle = new Circle();
        circle.radius = 8;
        System.out.println("圆半径为" + circle.radius + "圆周率为：" + circle.PI);
        circle.getCircleArea(circle.radius, circle.PI);
        circle.getCirclePerimeter(circle.radius, circle.PI);
        System.out.println("关于梯形：");
        Ladder ladder = new Ladder();
        ladder.upperBottom = 3;
        ladder.lowerBottom = 4;
        ladder.height = 5;
        System.out.println("上底：" + ladder.upperBottom + "下底:" + ladder.lowerBottom + "高:" + ladder.height);
        ladder.getLadderArea(ladder.upperBottom, ladder.lowerBottom, ladder.height);
        //
    }
}
